package com.weixindamin.exception;

public class wxexception extends Exception{
	private String excmsg;
	private int excid;
	private static final int myerr = 10000;
	public final static int wxerr = myerr;	
	public final static int jsonerr = myerr+1;
	public final static int httperr = myerr+2;
	public final static int sqlerr = myerr+3;
	
	
	
    public wxexception(){
        super();
    }
    public wxexception(int id,String msg){
        super();
        this.excid = id;
        this.excmsg = msg;
    }
    
    public int getexcid(){
        return excid;        
    }
    public String getexcmsg(){
        return excmsg;       
    }
    public String toString(){
        return "excid: "+excid+"excmsg: "+excmsg;       
    }
    
    
}
